﻿Public Class profile
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'Redirects to own profile as default
        If Request.Params("author") = "" Then Response.Redirect("profile.aspx?author=" & User.Identity.Name)

        'Prevents from visiting others' profile pages
        If Not Request.Params("author") = User.Identity.Name Then Response.Redirect("profile.aspx?author=" & User.Identity.Name)


    End Sub


End Class